/**
 * 
 */
package com.eej.act.obj;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;

/**
 * @author jlumietu
 *
 */
public class ListaArraunlaria extends ArrayList<Arraunlaria> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 * @param foto
	 * @return
	 */
	public Arraunlaria getArraunlaria(String foto){
		for(Iterator<Arraunlaria> it = this.iterator(); it.hasNext(); ){
			Arraunlaria a = it.next();
			if(a.foto.equals(foto)){
				return a;
			}
		}
		return null;
	}
	
	public String getStringRepresentation(){
		StringBuffer sb = new StringBuffer();
		for(Iterator<Arraunlaria> it = this.iterator(); it.hasNext(); ){
			sb.append(it.next().getStringRepresentation());
		}
		return sb.toString();
	}
	
}
